-- GENERATED SPELL FOR [Snagglespear] --


function spell0_5786(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5786', 5261, 1)
end

function Sorts_5786(pUnit, Event)
local choix_sorts_5786 = math.random(0, 0)
if choix_sorts_5786 == 0 then
pUnit:RegisterEvent('spell0_5786', 1, 1)
end
end

function mob5786_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5786', math.random(1500, 3000), 1)
end

function mob5786_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5786_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5786_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5786, 1, 'mob5786_Action')
RegisterUnitEvent(5786, 2, 'mob5786_Leave')
RegisterUnitEvent(5786, 3, 'mob5786_Kill')
RegisterUnitEvent(5786, 4, 'mob5786_Die')
